package com.enjoyor.soa.traffic.rest.tsms.dubbo.impl;

import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Reference;
import com.enjoyor.soa.traffic.api.dto.tsms.RouteInfoDto;
import com.enjoyor.soa.traffic.api.service.dubbo.tsms.IDubboSchemeActionService;
import com.enjoyor.soa.traffic.rest.tsms.dubbo.ISchemeActionConsumeService;
import com.enjoyor.soa.traffic.util.pojo.ResultPojo;


@Component
public class SchemeActionConsumeService implements ISchemeActionConsumeService {

	@Reference(version = "1.0.0", timeout = 10000)
	//@Reference(version = "1.0.0", timeout = 10000, url="dubbo://192.168.56.8:21241")
	private IDubboSchemeActionService iDubboSchemeActionService;

	@Override
	public void getPushServer(String routeId,String executeTaskId, String state, 
			String positionDeviceId,String personName) {
		// TODO Auto-generated method stub
		iDubboSchemeActionService.getPushServer(routeId, executeTaskId, state, positionDeviceId,personName);
	}
	
	@Override
	public ResultPojo changeFastRoute(String executeTaskId, String routeId, String newGeoStr, String personName) {
		// TODO Auto-generated method stub
		return iDubboSchemeActionService.changeFastRoute(executeTaskId, routeId, newGeoStr, personName);
	}
	
	@Override
	public ResultPojo getActionDataPoolList() {
		// TODO Auto-generated method stub
		return iDubboSchemeActionService.getActionDataPoolList();
	}
	
	@Override
	public ResultPojo clearActionDataPool(String executeTaskId) {
		// TODO Auto-generated method stub
		return iDubboSchemeActionService.clearActionDataPool(executeTaskId);
	}
	@Override
	public ResultPojo getRehearseDataPoolList() {
		// TODO Auto-generated method stub
		return iDubboSchemeActionService.getRehearseDataPoolList();
	}
	
	@Override
	public ResultPojo clearRehearseDataPool(String threadName) {
		// TODO Auto-generated method stub
		return iDubboSchemeActionService.clearRehearseDataPool(threadName);
	}
}
